package com.example.zselasticsearchsf.config.es.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 搜索请求bean
 *
 * @Author: Steven
 * @Date: 2021/11/4 6:21
 */
@Data
@EqualsAndHashCode
public class SearchReqDto {
    @ApiModelProperty(value = "索引名", example = "", required = true)
    private String index;

    @ApiModelProperty(value = "关键词，", example = "", required = false)
    private String keywords;

    @ApiModelProperty(value = "搜索的字段，", example = "", required = true)
    private String searchFiled;

    @ApiModelProperty(value = "排序字段，", example = "", required = false)
    private String sortFiled;


    @ApiModelProperty(value = "排序方式，1正序，-1倒序", example = "1", required = false)
    private Integer sortOrder;

    @ApiModelProperty(value = "页，", example = "1", required = false)
    private Integer page;

    @ApiModelProperty(value = "每页显示，", example = "10", required = false)
    private Integer size;
}
